﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using pttk_htt_hr.DAO;
using pttk_htt_hr.DTO;

namespace pttk_htt_hr.DAO
{
    class ChiTietPhieuLapThucDonTuanToiBUS
    {
        #region Select
        /// <summary>
        /// Lay_DanhSach_ChiTietPhieuLapThucDonTuanToi
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns></returns>
        public static List<Dictionary<string, string>> Lay_DanhSach_LstDic_ChiTietPhieuLapThucDonTuanToi(List<SqlParameter> parameters)
        {
            return ChiTietPhieuLapThucDonTuanToiDAO.Lay_DanhSach_LstDic_ChiTietPhieuLapThucDonTuanToi(parameters);
        }

        public static int Delete_ChiTietPhieuLapThucDonToi(List<SqlParameter> parameters)
        {
            return ChiTietPhieuLapThucDonTuanToiDAO.Delete_ChiTietPhieuLapThucDonToi(parameters);
        }
        #endregion

        #region Insert
        /// <summary>
        /// Thêm 1 phiếu chi tiết phiếu lập thực đơn tuần tới
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns></returns>
        public static int Them_ChiTietPhieuLapThucDonToi(List<List<SqlParameter>> parameters)
        {
            return ChiTietPhieuLapThucDonTuanToiDAO.Them_ChiTietPhieuLapThucDonToi(parameters);
        }
        #endregion


        #region Update
        public static int CapNhat_ChiTietPhieuLapThucDonToi(List<List<SqlParameter>> parameters,string ParentID, string[] MainKeys)
        {
            return ChiTietPhieuLapThucDonTuanToiDAO.CapNhat_ChiTietPhieuLapThucDonToi(parameters, ParentID, MainKeys);
        }
        #endregion


        #region Delete
        public static int DeleteAll_ChiTietPhieuLapThucDonToi(List<List<SqlParameter>> parameters)
        {
            return ChiTietPhieuLapThucDonTuanToiDAO.DeleteAll_ChiTietPhieuLapThucDonToi(parameters);
        }
        #endregion
        
    }
}
